package com.lagou;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Person {
    //name  匿名  ordinal 排序  serialize=false 显示或者不显示
    @JSONField(name="Username",ordinal = 1)
    String name;
    @JSONField(name="Age",ordinal = 2)
    Integer age;
    @JSONField(name="Sex",ordinal = 3,serialize = false)
    String sex;


}
